home *** CD-ROM | disk | FTP | other *** search
/ Quick PC 61 / Quick PC 61.iso / I386 / DRIVER.CAB / t9212p6.gpd < prev    next >
Encoding:
Text File  |  2003-02-21  |  28.6 KB  |  1,042 lines

  1. *%%
  2. *%% Tally T9212 PCL
  3. *%%
  4. *%% Copyright 1998 - 1999, Microsoft Corp.
  5. *%% All Rights Reserved.
  6. *%%
  7.  
  8. *%%
  9. *%% Global Entries
  10. *%%
  11. *GPDSpecVersion: "1.0"
  12. *GPDFileVersion: "1.0"
  13.  
  14. *%%% ======================
  15. *%%% Include standard GPD files
  16. *%%% =====================
  17. *Include: "StdNames.gpd"
  18. *Include: "ttfsub.gpd"
  19.  
  20. *%%
  21. *%% Model Specific Global Entries
  22. *%%
  23. *GPDFileName: "T9212P6.GPD"
  24. *ModelName:   "Tally T9212 PCL"
  25. *MaxCopies: 999
  26. *PrintRate: 12 
  27. *PrintRatePPM: 12
  28. *PrintRateUnit: PPM
  29.  
  30.  
  31. *%%% ======================
  32. *%%% Macros
  33. *%%% ======================
  34. *Include: "pjl.gpd"
  35. *Include: "p6font.gpd"
  36. *Include: "p6disp.gpd"
  37.  
  38. *%%% ======================
  39. *%%% Main
  40. *%%% ======================
  41. *Include: "pclxl.gpd"
  42.  
  43. *%%% ======================
  44. *%%% DOC_SETUP, PAGE_FINISH
  45. *%%% , JOB_FINISH
  46. *%%% ======================
  47. *Macros: PCLXLCommand
  48. {
  49. *%%% ---------------------------------------------------------------------------
  50. *%%% PCL XL Stream Header
  51. *%%% ---------------------------------------------------------------------------
  52. PCLXL_StreamHeader: ") HP-PCL XL;1;1;"
  53. +                   "Comment Copyright(c) 1999 Microsoft Corporation<0A>"
  54.  
  55. *%%% ---------------------------------------------------------------------------
  56. *%%% BeginSession
  57. *%%%     Measure(ubyte) & UnitsPerMeasure(uint16_xy) & {ErrorReport(ubyte)}
  58. *%%% ---------------------------------------------------------------------------
  59. *%%% PCLXL_BeginSession1200: =uint16_xy "<b004b004>" =attr_ubyte =UnitsPerMeasure =ubyte
  60. *%%% + =eInch =attr_ubyte =Measure =ubyte =eBackChAndErrPage =attr_ubyte =ErrorReport =BeginSession
  61.  
  62. PCLXL_BeginSession600: =uint16_xy "<58025802>" =attr_ubyte =UnitsPerMeasure =ubyte
  63. + =eInch =attr_ubyte =Measure =BeginSession
  64.  
  65. PCLXL_BeginSession300: =uint16_xy "<2c012c01>" =attr_ubyte =UnitsPerMeasure =ubyte
  66. + =eInch =attr_ubyte =Measure =BeginSession
  67.  
  68. Width: %m{ RasterDataWidthInBytes }
  69. Height: %m{ RasterDataHeightInPixels }
  70. DataSize: %l{ NumOfDataBytes }
  71. FntHeight: %l{ FontHeight*300/TextYRes }
  72. FntNextGlyph: %l{ NextGlyph }
  73.  
  74. *%%% ---------------------------------------------------------------------------
  75. *%%% BeginRaster
  76. *%%%     ColorDepth(ubyte) & ColorMapping(ubyte) & SourceWidth(uint16) &
  77. *%%%     SourceWidth(uint16) & SourceHeight(uint16)
  78. *%%% ---------------------------------------------------------------------------
  79. PCLXL_CmdBeginRaster: =ubyte =e1Bit =attr_ubyte =ColorDepth
  80. +                     =ubyte =eDirectPixel =attr_ubyte =ColorMapping
  81. +                     =uint16 =Width =attr_ubyte =SourceWidth
  82. +                     =uint16 =Height =attr_ubyte =SourceHeight
  83. +                     =uint16_xy =Width =Height =attr_ubyte =DestinationSize
  84. +                     =BeginImage
  85. +                     =ubyte =eNoCompression =attr_ubyte =CompressMode
  86. +                     =ubyte "<00>" =attr_ubyte =StartLine
  87. +                     =uint16 =Height =attr_ubyte =BlockHeight
  88. +                     =ReadImage
  89.  
  90. PCLXL_CmdSendBlockData: =dataLength =DataSize "<0000>"
  91.  
  92. DestinationX: %l{DestX}
  93. DestinationY: %l{DestY}
  94. DestinationXRel: %l{DestYRel}
  95. DestinationYRel: %l{DestXRel}
  96. NumOfCopy: %l{NumOfCopies}
  97. PrintDir: %l{PrintDirInCCDegrees}
  98. FntName: =ubyte_array =uint16 "<1000>" "MS PCLXLFont " %3d{CurrentFontID}
  99. }
  100.  
  101. *%%% ======================
  102. *%%% Features and Options
  103. *%%% ======================
  104.  
  105. *%% Orientation
  106. *Feature: Orientation
  107. {
  108.     *rcNameID: =ORIENTATION_DISPLAY
  109.     *DefaultOption: PORTRAIT
  110.     *Option: PORTRAIT
  111.     {
  112.         *rcNameID: =PORTRAIT_DISPLAY
  113.     }
  114.     *Option: LANDSCAPE_CC90
  115.     {
  116.         *rcNameID: =LANDSCAPE_DISPLAY
  117.     }
  118. }
  119.  
  120. *%%% ======================
  121. *%%% DOC_SETUP
  122. *%%% ======================
  123.  
  124. *%%% ======================
  125. *%%% DOC_SETUP.1
  126. *%%% START PLJ JOB
  127. *%%% PAGEPROTECT
  128. *%%% TIMEOUT
  129. *Feature: PageProtect
  130. {
  131.     *rcNameID: =PAGE_PROTECTION_DISPLAY
  132.     *DefaultOption: OFF
  133.     *Option: ON
  134.     {
  135.         *rcNameID: =ON_DISPLAY
  136.         *Command: CmdSelect
  137.         {
  138.             *Order: DOC_SETUP.1
  139.             *Cmd: =PJL_STARTJOB =PJL_COMMENT =PJL_PAGEPROTECT_ON =PJL_TIMEOUT_90
  140.         }
  141.     }
  142.     *Option: OFF
  143.     {
  144.         *rcNameID: =OFF_DISPLAY
  145.         *Command: CmdSelect
  146.         {
  147.             *Order: DOC_SETUP.1
  148.             *Cmd: =PJL_STARTJOB =PJL_COMMENT =PJL_PAGEPROTECT_OFF =PJL_TIMEOUT_90
  149.         }
  150.     }
  151. }
  152. *%%% ======================
  153. *%%% DOC_SETUP.2
  154. *%%% ECONOMODE
  155. *Feature: Economode
  156. {
  157.     *rcNameID: =ECONOMODE_DISPLAY
  158.     *DefaultOption: Option1
  159.     *Option: Option1
  160.     {
  161.         *rcNameID: =ECONOMODE_DEFAULT_DISPLAY
  162.     }
  163.     *Option: Option2
  164.     {
  165.         *rcNameID: =ECONOMODE_OFF_DISPLAY
  166.         *Command: CmdSelect
  167.         {
  168.             *Order: DOC_SETUP.2
  169.             *Cmd: =PJL_ECONOMODE_OFF
  170.         }
  171.     }
  172.     *Option: Option3
  173.     {
  174.         *rcNameID: =ECONOMODE_ON_DISPLAY
  175.         *Command: CmdSelect
  176.         {
  177.             *Order: DOC_SETUP.2
  178.             *Cmd: =PJL_ECONOMODE_ON
  179.         }
  180.     }
  181. }
  182.  
  183. *%%% ======================
  184. *%%% DOC_SETUP.3
  185. *%%% RET
  186. *Feature: RET
  187. {
  188.     *rcNameID: =PRINT_QUALITY
  189.     *DefaultOption: Option1
  190.     *Option: Option1
  191.     {
  192.         *rcNameID: =PRINT_QUALITY_DEFAULT
  193.     }
  194.     *Option: Option2
  195.     {
  196.         *rcNameID: =PRINT_QUALITY_LIGHT
  197.         *Command: CmdSelect
  198.         {
  199.             *Order: DOC_SETUP.3
  200.             *Cmd: =PJL_RET_LIGHT
  201.         }
  202.     }
  203.     *Option: Option3
  204.     {
  205.         *rcNameID: =PRINT_QUALITY_MEDIUM
  206.         *Command: CmdSelect
  207.         {
  208.             *Order: DOC_SETUP.3
  209.             *Cmd: =PJL_RET_MEDIUM
  210.         }
  211.     }
  212.     *Option: Option4
  213.     {
  214.         *rcNameID: =PRINT_QUALITY_DARK
  215.         *Command: CmdSelect
  216.         {
  217.             *Order: DOC_SETUP.3
  218.             *Cmd: =PJL_RET_DARK
  219.         }
  220.     }
  221.     *Option: Option5
  222.     {
  223.         *rcNameID: =PRINT_QUALITY_OFF
  224.         *Command: CmdSelect
  225.         {
  226.             *Order: DOC_SETUP.3
  227.             *Cmd: =PJL_RET_OFF
  228.         }
  229.     }
  230. }
  231.  
  232.  
  233. *%%% ======================
  234. *%%% DOC_SETUP.5
  235. *%%%     RESOLUTION
  236. *%%%     ENTER LANGUAGE=PCLXL
  237. *%%%     PCL XL Stream Header
  238. *%%%     BeginSession
  239. *%%% CmdEndRaster
  240. *%%%     EndImage
  241. *%%% CmdSendBlockData
  242. *%%%     EndImage
  243. *Feature: Resolution
  244. {
  245.     *rcNameID: =RESOLUTION_DISPLAY
  246.     *DefaultOption: Option1
  247.     *Option: Option1
  248.     {
  249.         *Name: "600 x 600 " =DOTS_PER_INCH
  250.         *DPI: PAIR(600, 600)
  251.         *TextDPI: PAIR(600, 600)
  252.         *MinStripBlankPixels: 32
  253.         EXTERN_GLOBAL: *StripBlanks: LIST(LEADING, ENCLOSED,TRAILING)
  254.         *SpotDiameter: 100
  255.         *Command: CmdBeginRaster
  256.         {
  257.             *Cmd : =PCLXL_CmdBeginRaster
  258.         }
  259.  
  260.         *Command: CmdSendBlockData
  261.         {
  262.             *Cmd : =PCLXL_CmdBeginRaster =PCLXL_CmdSendBlockData
  263.         }
  264.  
  265.         *% EndImage(0xb2)
  266.         *%
  267.         *Command: CmdEndBlockData { *Cmd : =EndImage}
  268.  
  269.         *Command: CmdSelect
  270.         {
  271.             *Order: DOC_SETUP.5
  272.             *Cmd: =PJL_RESOLUTION_600 =PJL_ENTER_PCLXL =PCLXL_StreamHeader =PCLXL_BeginSession600
  273.         }
  274.     }
  275.     *Option: Option2
  276.     {
  277.         *Name: "300 x 300 " =DOTS_PER_INCH
  278.         *DPI: PAIR(300, 300)
  279.         *TextDPI: PAIR(300, 300)
  280.         *MinStripBlankPixels: 32
  281.         EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  282.         *SpotDiameter: 100
  283.         *Command: CmdBeginRaster
  284.         {
  285.             *Cmd : =PCLXL_CmdBeginRaster
  286.         }
  287.  
  288.         *Command: CmdEndRaster { *Cmd : =EndImage }
  289.         *Command: CmdSendBlockData
  290.         {
  291.             *Cmd: =PCLXL_CmdSendBlockData
  292.         }
  293.  
  294.         *Command: CmdSelect
  295.         {
  296.             *Order: DOC_SETUP.5
  297.             *Cmd: =PJL_RESOLUTION_300 =PJL_ENTER_PCLXL =PCLXL_StreamHeader =PCLXL_BeginSession300
  298.         }
  299.     }
  300. }
  301.  
  302. *%%% ======================
  303. *%%% DOC_SETUP.6
  304. *%%% OpenDataSource(0x48)
  305. *%%%     SourceType(ubyte) & DataOrg(ubyte)
  306. *%%%     136(0x88)           130(0x82)
  307. *Command: CmdStartDoc
  308. {
  309.     *Order: DOC_SETUP.6
  310.     *Cmd: =ubyte "<00>" =attr_ubyte =SourceType =ubyte "<01>" =attr_ubyte =DataOrg =OpenDataSource
  311. }
  312.  
  313. *%%% ======================
  314. *%%% PAGE_FINISH
  315. *%%% ======================
  316.  
  317. *%%% ======================
  318. *%%% PAGE_FINISH.3
  319. *Command: CmdEndPage
  320. {
  321.     *Order: PAGE_FINISH.1
  322.     *Cmd: =uint16 =NumOfCopy =attr_ubyte =PageCopies =EndPage
  323. }
  324.  
  325. *%%% ======================
  326. *%%% JOB_FINISH.1
  327. *%%% CmdEndJob
  328. *Command: CmdEndJob
  329. {
  330.     *Order: JOB_FINISH.1
  331.     *Cmd: =CloseDataSource =EndSession =PJL_ENDJOB
  332. }
  333.  
  334. *%%% ======================
  335. *%%% PAGE_SETUP
  336. *%%% ======================
  337.  
  338. *%%% ======================
  339. *%%% PAGE_SETUP.1
  340. *%%% BeginPage(0x43)
  341. *%%%     Orientation(40), MediaSize(37), MediaSource(38)
  342. *%%%     ubyte            ubyte          ubyte
  343.  
  344. *BlockMacro: PaperConstraints
  345. {
  346.     *Constraints: LIST(InputBin.Option2, InputBin.Option3)
  347. }
  348.  
  349. *Feature: PaperSize
  350. {
  351.     *rcNameID: =PAPER_SIZE_DISPLAY
  352.     *DefaultOption: LETTER
  353.     *Option: LETTER
  354.     {
  355.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *% rcid 1000
  356.         *PageProtectMem: 4109
  357.         *switch: Orientation
  358.         {
  359.             *case: PORTRAIT
  360.             {
  361.                 *PrintableArea: PAIR(4896, 6396)
  362.                 *PrintableOrigin: PAIR(102, 102)
  363.                 *CursorOrigin: PAIR(102, 80)
  364.                 *Command: CmdSelect
  365.                 {
  366.                     *Order: PAGE_SETUP.1
  367.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  368. +                         =ubyte =eLetterPaper =attr_ubyte =MediaSize
  369.                 }
  370.             }
  371.             *case: LANDSCAPE_CC90
  372.             {
  373.                 *PrintableArea: PAIR(4896, 6396)
  374.                 *PrintableOrigin: PAIR(102, 102)
  375.                 *CursorOrigin: PAIR(100, 6450)
  376.                 *Command: CmdSelect
  377.                 {
  378.                     *Order: PAGE_SETUP.1
  379.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  380. +                         =ubyte =eLetterPaper =attr_ubyte =MediaSize
  381.                 }
  382.             }
  383.         }
  384.     }
  385.     *Option: LEGAL
  386.     {
  387.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  388.         *PageProtectMem: 5230
  389.         *switch: Orientation
  390.         {
  391.             *case: PORTRAIT
  392.             {
  393.                 *PrintableArea: PAIR(4896, 8196)
  394.                 *PrintableOrigin: PAIR(102, 102)
  395.                 *CursorOrigin: PAIR(102, 80)
  396.                 *Command: CmdSelect
  397.                 {
  398.                     *Order: PAGE_SETUP.1
  399.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  400. +                         =ubyte =eLegalPaper =attr_ubyte =MediaSize
  401.                 }
  402.             }
  403.             *case: LANDSCAPE_CC90
  404.             {
  405.                 *PrintableArea: PAIR(4896, 8196)
  406.                 *PrintableOrigin: PAIR(102, 102)
  407.                 *CursorOrigin: PAIR(102, 8250)
  408.                 *Command: CmdSelect
  409.                 {
  410.                     *Order: PAGE_SETUP.1
  411.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  412. +                         =ubyte =eLegalPaper =attr_ubyte =MediaSize
  413.                 }
  414.             }
  415.         }
  416.     }
  417.     *Option: EXECUTIVE
  418.     {
  419.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  420.         *PageProtectMem: 4109
  421.         *switch: Orientation
  422.         {
  423.             *case: PORTRAIT
  424.             {
  425.                 *PrintableArea: PAIR(4146, 6096)
  426.                 *PrintableOrigin: PAIR(102, 102)
  427.                 *CursorOrigin: PAIR(102, 80)
  428.                 *Command: CmdSelect
  429.                 {
  430.                     *Order: PAGE_SETUP.1
  431.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  432. +                         =ubyte =eExecPaper =attr_ubyte =MediaSize
  433.                 }
  434.             }
  435.             *case: LANDSCAPE_CC90
  436.             {
  437.                 *PrintableArea: PAIR(4146, 6096)
  438.                 *PrintableOrigin: PAIR(102, 102)
  439.                 *CursorOrigin: PAIR(100, 6150)
  440.                 *Command: CmdSelect
  441.                 {
  442.                     *Order: PAGE_SETUP.1
  443.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  444. +                         =ubyte =eExecPaper =attr_ubyte =MediaSize
  445.                 }
  446.             }
  447.         }
  448.     }
  449.  
  450.     *Option: A4
  451.     {
  452.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1008
  453.         *PageProtectMem: 4249
  454.         *switch: Orientation
  455.         {
  456.             *case: PORTRAIT
  457.             {
  458.                 *PrintableArea: PAIR(4756, 6810)
  459.                 *PrintableOrigin: PAIR(102, 102)
  460.                 *CursorOrigin: PAIR(102, 100)
  461.                 *Command: CmdSelect
  462.                 {
  463.                     *Order: PAGE_SETUP.1
  464.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  465. +                         =ubyte =eA4Paper =attr_ubyte =MediaSize
  466.                 }
  467.             }
  468.             *case: LANDSCAPE_CC90
  469.             {
  470.                 *PrintableArea: PAIR(4756, 6810)
  471.                 *PrintableOrigin: PAIR(102, 102)
  472.                 *CursorOrigin: PAIR(100, 6842)
  473.                 *Command: CmdSelect
  474.                 {
  475.                     *Order: PAGE_SETUP.1
  476.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  477. +                         =ubyte =eA4Paper =attr_ubyte =MediaSize
  478.                 }
  479.             }
  480.         }
  481.     }
  482.     *Option: FOLIO
  483.     {
  484.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *% rcid 1000
  485.         *PageProtectMem: 4600
  486.         *switch: Orientation
  487.         {
  488.             *case: PORTRAIT
  489.             {
  490.                 *PrintableArea: PAIR(4896, 7596)
  491.                 *PrintableOrigin: PAIR(102, 102)
  492.                 *CursorOrigin: PAIR(102, 80)
  493.                 *Command: CmdSelect
  494.                 {
  495.                     *Order: PAGE_SETUP.1
  496.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  497. +                         =ubyte "<11>" =attr_ubyte =MediaSize
  498.                 }
  499.             }
  500.             *case: LANDSCAPE_CC90
  501.             {
  502.                 *PrintableArea: PAIR(4896, 7596)
  503.                 *PrintableOrigin: PAIR(102, 102)
  504.                 *CursorOrigin: PAIR(100, 7650)
  505.                 *Command: CmdSelect
  506.                 {
  507.                     *Order: PAGE_SETUP.1
  508.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  509. +                         =ubyte "<11>" =attr_ubyte =MediaSize
  510.                 }
  511.             }
  512.         }
  513.     }
  514.     *Option: A5
  515.     {
  516.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  517.         *PageProtectMem: 2125
  518.         *switch: Orientation
  519.         {
  520.             *case: PORTRAIT
  521.             {
  522.                 *PrintableArea: PAIR(3302, 4756)
  523.                 *PrintableOrigin: PAIR(102, 102)
  524.                 *CursorOrigin: PAIR(102, 76)
  525.                 *Command: CmdSelect
  526.                 {                              
  527.                     *Order: PAGE_SETUP.1
  528.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  529. +                         =ubyte =eA5Paper =attr_ubyte =MediaSize
  530.                 }
  531.  
  532.             }
  533.             *case: LANDSCAPE_CC90
  534.             {
  535.                 *PrintableArea: PAIR(3302, 4756)
  536.                 *PrintableOrigin: PAIR(102, 102)
  537.                 *CursorOrigin: PAIR(100, 4790)
  538.                 *Command: CmdSelect
  539.                 {
  540.                     *Order: PAGE_SETUP.1
  541.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  542. +                         =ubyte =eA5Paper =attr_ubyte =MediaSize
  543.                 }
  544.             }
  545.         }
  546.     }
  547.     *Option: ENV_10
  548.     {
  549.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1019
  550.         *InsertBlock: =PaperConstraints
  551.         *PageProtectMem: 4109
  552.         *switch: Orientation
  553.         {
  554.             *case: PORTRAIT
  555.             {
  556.                 *PrintableArea: PAIR(2270, 5496)
  557.                 *PrintableOrigin: PAIR(102, 102)
  558.                 *CursorOrigin: PAIR(102, 90)
  559.                 *Command: CmdSelect
  560.                 {
  561.                     *Order: PAGE_SETUP.1
  562.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  563. +                         =ubyte =eCOM10Envelope =attr_ubyte =MediaSize
  564.                 }
  565.             }
  566.             *case: LANDSCAPE_CC90
  567.             {
  568.                 *PrintableArea: PAIR(2270, 5496)
  569.                 *PrintableOrigin: PAIR(102, 102)
  570.                 *CursorOrigin: PAIR(102, 5550)
  571.                 *Command: CmdSelect
  572.                 {
  573.                     *Order: PAGE_SETUP.1
  574.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  575. +                         =ubyte =eCOM10Envelope =attr_ubyte =MediaSize
  576.                 }
  577.             }
  578.         }
  579.     }
  580.     *Option: ENV_DL
  581.     {
  582.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1026
  583.         *InsertBlock: =PaperConstraints
  584.         *PageProtectMem: 4109
  585.         *switch: Orientation
  586.         {
  587.             *case: PORTRAIT
  588.             {
  589.                 *PrintableArea: PAIR(2394, 4992)
  590.                 *PrintableOrigin: PAIR(102, 102)
  591.                 *CursorOrigin: PAIR(102, 90)
  592.                 *Command: CmdSelect
  593.                 {
  594.                     *Order: PAGE_SETUP.1
  595.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  596. +                         =ubyte =eDLEnvelope =attr_ubyte =MediaSize
  597.                 }
  598.             }
  599.             *case: LANDSCAPE_CC90
  600.             {
  601.                 *PrintableArea: PAIR(2394, 4992)
  602.                 *PrintableOrigin: PAIR(102, 102)
  603.                 *CursorOrigin: PAIR(100, 5046)
  604.                 *Command: CmdSelect
  605.                 {
  606.                     *Order: PAGE_SETUP.1
  607.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  608. +                         =ubyte =eDLEnvelope =attr_ubyte =MediaSize
  609.                 }
  610.             }
  611.         }
  612.     }
  613.     *Option: ENV_C5
  614.     {
  615.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1027
  616.         *InsertBlock: =PaperConstraints
  617.         *PageProtectMem: 4109
  618.         *switch: Orientation
  619.         {
  620.             *case: PORTRAIT
  621.             {
  622.                 *PrintableArea: PAIR(3622, 5204)
  623.                 *PrintableOrigin: PAIR(102, 102)
  624.                 *CursorOrigin: PAIR(150, 90)
  625.                 *Command: CmdSelect
  626.                 {
  627.                     *Order: PAGE_SETUP.1
  628.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  629. +                         =ubyte =eC5Envelope =attr_ubyte =MediaSize
  630.                 }
  631.             }
  632.             *case: LANDSCAPE_CC90
  633.             {
  634.                 *PrintableArea: PAIR(3622, 5204)
  635.                 *PrintableOrigin: PAIR(102, 102)
  636.                 *CursorOrigin: PAIR(100, 5257)
  637.                 *Command: CmdSelect
  638.                 {
  639.                     *Order: PAGE_SETUP.1
  640.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  641. +                         =ubyte =eC5Envelope =attr_ubyte =MediaSize
  642.                 }
  643.             }
  644.         }
  645.     }
  646.     *Option: ENV_MONARCH
  647.     {
  648.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1036
  649.         *InsertBlock: =PaperConstraints
  650.         *PageProtectMem: 4109
  651.         *switch: Orientation
  652.         {
  653.             *case: PORTRAIT
  654.             {
  655.                 *PrintableArea: PAIR(2120, 4296)
  656.                 *PrintableOrigin: PAIR(102, 102)
  657.                 *CursorOrigin: PAIR(102, 90)
  658.                 *Command: CmdSelect
  659.                 {
  660.                     *Order: PAGE_SETUP.1
  661.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  662. +                         =ubyte =eMonarchEnvelope =attr_ubyte =MediaSize
  663.                 }
  664.             }
  665.             *case: LANDSCAPE_CC90
  666.             {
  667.                 *PrintableArea: PAIR(2120, 4206)
  668.                 *PrintableOrigin: PAIR(102, 102)
  669.                 *CursorOrigin: PAIR(100, 4350)
  670.                 *Command: CmdSelect
  671.                 {
  672.                     *Order: PAGE_SETUP.1
  673.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  674. +                         =ubyte =eMonarchEnvelope =attr_ubyte =MediaSize
  675.                 }
  676.             }
  677.         }
  678.     }
  679.     *Option: ENV_B5
  680.     {
  681.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  682.         *PageProtectMem: 4109
  683.         *InsertBlock: =PaperConstraints
  684.         *switch: Orientation
  685.         {
  686.             *case: PORTRAIT
  687.             {
  688.                 *PrintableArea: PAIR(3956, 5704)
  689.                 *PrintableOrigin: PAIR(102, 102)
  690.                 *CursorOrigin: PAIR(102, 70)
  691.                 *Command: CmdSelect
  692.                 {
  693.                     *Order: PAGE_SETUP.1
  694.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  695. +                         =ubyte =eB5Envelope =attr_ubyte =MediaSize
  696.                 }
  697.             }
  698.             *case: LANDSCAPE_CC90
  699.             {
  700.                 *PrintableArea: PAIR(3956, 5704)
  701.                 *PrintableOrigin: PAIR(102, 102)
  702.                 *CursorOrigin: PAIR(100, 5754)
  703.                 *Command: CmdSelect
  704.                 {
  705.                     *Order: PAGE_SETUP.1
  706.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  707. +                         =ubyte =eB5Envelope =attr_ubyte =MediaSize
  708.                 }
  709.             }
  710.         }
  711.     }
  712. }
  713.  
  714. *%%% ======================
  715. *%%% PAGE_SETUP.2
  716. *%%% BeginPage(0x43)
  717. *%%%     Orientation(0x40), MediaSize(0x37), MediaSource(0x38)
  718. *%%%     ubyte               ubyte             ubyte
  719. *%%%     MediaSource
  720. *Feature: InputBin
  721. {
  722.     *rcNameID: =PAPER_SOURCE_DISPLAY
  723.     *DefaultOption: Option1
  724.     *Option: Option1
  725.     {
  726.         *rcNameID: =AUTO_DISPLAY
  727.         *Command: CmdSelect
  728.         {
  729.             *Order: PAGE_SETUP.2
  730.             *Cmd: =ubyte =eAutoSelect =attr_ubyte =MediaSource
  731.         }
  732.     }
  733.     *Option: Option2
  734.     {
  735.         *rcNameID: =TRAY1_DISPLAY
  736.         *Command: CmdSelect
  737.         {
  738.             *Order: PAGE_SETUP.2
  739.             *Cmd: =ubyte =eUpperCassette =attr_ubyte =MediaSource
  740.         }
  741.     }
  742.     *Option: Option3
  743.     {
  744.         *rcNameID: =TRAY2_DISPLAY
  745.         *Command: CmdSelect
  746.         {
  747.             *Order: PAGE_SETUP.2
  748.             *Cmd: =ubyte =eLowerCassette =attr_ubyte =MediaSource
  749.         }
  750.     }
  751.     *Option: Option4
  752.     {
  753.         *rcNameID: =MANUAL_FEED_DISPLAY
  754.         *Command: CmdSelect
  755.         {
  756.             *Order: PAGE_SETUP.2
  757.             *Cmd: =ubyte =eManualFeed =attr_ubyte =MediaSource
  758.         }
  759.     }
  760. }
  761.  
  762. *%%% ======================
  763. *%%% PAGE_SETUP.4
  764. *%%% SetPageOrigin
  765. *%%%     PageOrigin
  766. *%%% SetPageScale
  767. *switch: Resolution
  768. {
  769.         *case: Option2
  770.         {
  771.                 *Command: CmdStartPage
  772.                 {
  773.                         *Order: PAGE_SETUP.3
  774.                         *Cmd: =ubyte =eSimplexFrontSide =attr_ubyte =SimplexPageMode =BeginPage
  775. +                                     =sint16_xy "<3300><3300>" =attr_ubyte =PageOrigin =SetPageOrigin
  776. +                                     =real32_xy "<0000803f><0000803f>" =attr_ubyte =PageScale =SetPageScale
  777. +                                     =ubyte "<01>" =attr_ubyte =ColorSpace =SetColorSpace
  778.                 }
  779.         }
  780.  
  781.         *default  
  782.         {
  783.                 *Command: CmdStartPage
  784.                 {
  785.                         *Order: PAGE_SETUP.3
  786.                         *Cmd: =ubyte =eSimplexFrontSide =attr_ubyte =SimplexPageMode =BeginPage
  787. +                                     =sint16_xy "<6600><6600>" =attr_ubyte =PageOrigin =SetPageOrigin
  788. +                                     =real32_xy "<0000803f><0000803f>" =attr_ubyte =PageScale =SetPageScale
  789. +                                     =ubyte "<01>" =attr_ubyte =ColorSpace =SetColorSpace
  790.                 }
  791.         }
  792.  
  793. }
  794.  
  795.  
  796. *%%% ======================
  797. *%%% Feature
  798. *%%% Memory
  799. *Feature: Memory
  800. {
  801.     *rcNameID: =PRINTER_MEMORY_DISPLAY
  802.     *DefaultOption: 4MB
  803.         *MemConfigMB: PAIR(4, 3)
  804.         *MemConfigMB: PAIR(8, 7)
  805.         *MemConfigMB: PAIR(16, 13)
  806.         *MemConfigMB: PAIR(36, 31)
  807. }
  808.  
  809. *%%% ======================
  810. *%%% Device fonts
  811. *%%% ======================
  812.  
  813. *DefaultFont: =RC_FONT_COURIERR
  814. *DefaultCTT: 0
  815.  
  816. *DeviceFonts: LIST(
  817. +    =RC_FONT_ALBERTX,
  818. +    =RC_FONT_AOLIVEB,
  819. +    =RC_FONT_AOLIVER,
  820. +    =RC_FONT_ARIALB,
  821. +    =RC_FONT_ARIALI,
  822. +    =RC_FONT_ARIALJ,
  823. +    =RC_FONT_ARIALR,
  824. +    =RC_FONT_COURIERB,
  825. +    =RC_FONT_COURIERI,
  826. +    =RC_FONT_COURIERJ,
  827. +    =RC_FONT_COURIERR,
  828. +    =RC_FONT_LETGOTHB,
  829. +    =RC_FONT_LETGOTHI,
  830. +    =RC_FONT_LETGOTHR,
  831. +    =RC_FONT_MARGOLDR,
  832. +    =RC_FONT_TIMESNRB,
  833. +    =RC_FONT_TIMESNRI,
  834. +    =RC_FONT_TIMESNRJ,
  835. +    =RC_FONT_TIMESNRR,
  836. +    =RC_FONT_WINGDINGS,
  837. +    =RC_FONT_SYMBOL)
  838.  
  839. *TTFS: AlbertusX
  840. {
  841.   *TTFontName: "Albertus Extra Bold"
  842.   *DevFontName: "Albertus Extra Bold"
  843. }
  844. *TTFS: AntiqueOlive
  845. {
  846.   *TTFontName: "Antique Olive"
  847.   *DevFontName: "Antique Olive"
  848. }
  849. *TTFS: Courier
  850. {
  851.   *TTFontName: "Courier New"
  852.   *DevFontName: "Courier"
  853. }
  854. *TTFS: LetterGothic
  855. {
  856.   *TTFontName: "Letter Gothic"
  857.   *DevFontName: "Letter Gothic"
  858. }
  859. *TTFS: Marigold
  860. {
  861.   *TTFontName: "Marigold"
  862.   *DevFontName: "Marigold"
  863. }
  864.  
  865. *%% =======================
  866. *%% Optional Input Trays
  867. *%% =======================
  868. *Feature: TRAY2
  869. {
  870.     *rcNameID: =TRAY2_DISPLAY
  871.     *FeatureType: PRINTER_PROPERTY
  872.     *DefaultOption: FALSE
  873.     *Option: FALSE
  874.     {
  875.         *rcNameID: =NOT_INSTALLED_DISPLAY
  876.     }
  877.     *Option: TRUE
  878.     {
  879.         *rcNameID: =INSTALLED_DISPLAY
  880.     }
  881. }
  882. *InvalidCombination: LIST(TRAY2.FALSE,InputBin.Option3)
  883.  
  884. *%%% ======================
  885. *%%% PCL XL GPD file main
  886. *%%% ======================
  887.  
  888. *%%% ======================
  889. *%%% Global Entries
  890. *%%% Attributes
  891. *%%% ======================
  892. *MasterUnits: PAIR(600, 600)
  893. *CodePage: 1252
  894. *ResourceDLL: "pclxl.dll"
  895. *PrinterType: PAGE
  896. *Personality: =PERSONALITY_PCLXL
  897. *rcPersonalityID: =PERSONALITY_PCLXL_DISPLAY
  898. *%%% *rcPrinterIconID:
  899. *%%% *HelpFile:
  900.  
  901. *%%% ======================
  902. *%%% Printing attributes
  903. *%%% ======================
  904. *RotateCoordinate?: TRUE
  905. *RotateRaster?: TRUE
  906. *RotateFont?: TRUE
  907. *EjectPageWithFF?: FALSE
  908.  
  909. *TextCaps: LIST(TC_CR_ANY,TC_CR_90,TC_SF_X_YINDEP,TC_SA_CONTIN,TC_IA_ABLE,TC_UA_ABLE)
  910. *MemoryUsage: LIST(FONT)
  911. *CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
  912. *CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
  913. *CursorYAfterSendBlockData: AUTO_INCREMENT
  914. *BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)
  915. *XMoveThreshold: 0
  916. *YMoveThreshold: 0
  917. *XMoveUnit: 600
  918. *YMoveUnit: 600
  919.  
  920. *%%% *MinGrayFill: 1
  921. *%%% *MaxGrayFill: 100
  922.  
  923. *%%% *OutputDataFormat: H_BYTE
  924. *%%% *OptimizeLeftBound?: TRUE
  925.  
  926. *%%% ======================
  927. *%%% Color
  928. *%%% ======================
  929. *Feature: ColorMode
  930. {
  931.     *ConcealFromUI?: TRUE
  932.     *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  933.     *DefaultOption: Mono
  934.     *Option: Mono
  935.     {
  936.         *rcNameID: =COLOR_DISPLAY
  937.         *Color?: FALSE
  938.         *DevNumOfPlanes: 1
  939.         *DevBPP: 24
  940.         *DrvBPP: 24
  941.         *PaletteSize: 256
  942.         *PaletteProgrammable?: FALSE
  943.     }
  944. }
  945.  
  946. *%%% ======================
  947. *%%% TrueType fonts
  948. *%%% ======================
  949.  
  950. *CharPosition: BASELINE
  951. *TTFSEnabled?: TRUE
  952. *FontFormat: OEM_CALLBACK
  953. *MinFontID: 1
  954. *MaxFontID: 65535
  955. *MinGlyphID: 1
  956. *MaxGlyphID: 1000
  957.  
  958. *%%% ======================
  959. *%%% Cursor commands
  960. *%%% ======================
  961.  
  962. *Command: CmdCR { *Cmd: =CR}
  963. *Command: CmdLF { *Cmd: =LF}
  964. *Command: CmdFF { *Cmd: =FF}
  965.  
  966. *%%% SetCursor(0x6b)
  967. *%%%     Point(76(0x40c)) uint_16
  968. *%%% SetCursorRel(0x6c)
  969. *%%%     Point(76(0x40c)) uint_16
  970. *Command: CmdXMoveAbsolute
  971. {
  972.     *Cmd: ""
  973. }
  974. *Command: CmdXMoveRelRight
  975. {
  976.     *Cmd: ""
  977.     *Params: LIST(DestXRel, TextXRes)
  978. }
  979. *Command: CmdXMoveRelLeft
  980. {
  981.     *Cmd: ""
  982.     *Params: LIST(DestXRel, TextXRes)
  983. }
  984. *Command: CmdYMoveAbsolute
  985. {
  986.     *Cmd: ""
  987.     *Params: LIST(DestY, TextYRes)
  988. }
  989. *Command: CmdYMoveRelDown
  990. {
  991.     *Cmd: ""
  992.     *Params: LIST(DestYRel, TextYRes)
  993. }
  994. *Command: CmdYMoveRelUp
  995. {
  996.     *Cmd: ""
  997.     *Params: LIST(DestYRel, TextYRes)
  998. }
  999. *%%% *Command: CmdPushCursor
  1000. *%%% *Command: CmdPopCursor
  1001.  
  1002. *%%% =======================
  1003. *%%% Font commands
  1004. *%%% =======================
  1005.  
  1006. *Command: CmdSetFontID { *Cmd : "" }
  1007. *Command: CmdSelectFontID
  1008. {
  1009.     *Cmd: ""
  1010.     *Params: LIST(FontHeight, CurrentFontID, TextYRes)
  1011. }
  1012.  
  1013. *Command: CmdSetCharCode
  1014. {
  1015.     *Cmd : ""
  1016. }
  1017.  
  1018. *Command: CmdBoldOn
  1019. {
  1020.     *Cmd : ""
  1021. }
  1022. *Command: CmdBoldOff
  1023. {
  1024.     *Cmd : ""
  1025. }
  1026. *%%% *Command: CmdItalicOn: "=real32_xy "<3ea1e4f700000000>" =attr_ubyte =eCharShear =SetCharShear"
  1027. *%%% *Command: CmdItalicOff: "=real32_xy "<0000000000000000>" =attr_ubyte =eCharShear =SetCharShear"
  1028. *%%% *Command: CmdWhiteTextOn:
  1029. *%%% *Command: CmdWhiteTextOff:
  1030. *%%% *Command: CmdSelectSingleByteMode:
  1031. *%%% *Command: CmdSelectDoubleByteMode:
  1032. *Command: CmdSetAnyRotation
  1033. {
  1034.     *Cmd: ""
  1035.     *Params: LIST(PrintDirInCCDegrees)
  1036. }
  1037. *Command: CmdSetSimpleRotation
  1038. {
  1039.     *Cmd: ""
  1040.     *Params: LIST(PrintDirInCCDegrees)
  1041. }
  1042.